STEP 6: We now have the user's input, but is it valid? This ice cream shop sells a maximum of three scoops at once.
We can use >= in an if statement to see whether a value is greater than or equal to another value.
- In LOGIC, go to and drag Greater Than or Equal To? inside the try statement.
- In the new if statement change my_var to scoops. Change 0 to 4. Delete print·True from the if statement.
- From drag Integer Variable inside the if statement. Indent this four times or sixteen spaces!
To navigate the page using the TAB key, first press ESC to exit the code editor.